package com.fh.feign;
import com.fh.fallback.OrderItemQueryClientFallback;
import com.fh.model.OrderItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;

@FeignClient(value = "orderitem-query",fallback = OrderItemQueryClientFallback.class)
public interface OrderItemQueryClient {

    @GetMapping("query")
    public List<OrderItem> query(@RequestParam("orderId") String orderId);

}
